import request from "@/utils/request";

export function pageDept(params){
    return request({
        url: '/api/rabc/dept/page',
        method: 'get',
        params
    })
}
export function listDept(){
    return request({
        url: '/api/rabc/dept/list',
        method: 'get'
    })
}
export function addDept(data) {
    return request({
        url: '/api/rabc/dept/add',
        method: 'post',
        data
    })
}
export function updateDept(data) {
    return request({
        url: '/api/rabc/dept/update',
        method: 'post',
        data
    })
}
export function deleteDept(id) {
    return request({
        url: '/api/rabc/dept/delete',
        method: 'post',
        data:{
            id
        }
    })
}